package cn.edu.zafu.bigdata.x.zhouyuyan.work5;

public class ResizableCircle implements Movable,Resizable{
    private double radius;
    public ResizableCircle(double radius){
        this.radius = radius;
    }
    public void move(){
        System.out.println("The circle is moving.");
    }
    public void stop(){
        System.out.println("The circle has stopped.");
    }
    public void resize(double factor){
        radius = radius * factor;
        System.out.println("New radius:"+radius);
    }
}
